<!--

Saherace - Rent a Car

This page shows the details of the selected station.

-->

<?php

//Include the soap client connection and the header area of the website
include('includes/header.php');

//Save station id in session variable
if(isset($_GET['station_id'])) {
	$_SESSION['station_id'] = $_GET['station_id'];
}

//Get the stations attributes
$station_id = array('station_id'=> $_SESSION['station_id']);
$getStationById = $client->getStationById($station_id);
?>

<!-- List all attributes of the selected station -->
<ul data-role="listview" data-inset="true">
	<li data-role="list-divider"><?php echo $getStationById->return->city ?></li>
	<li>
		<table>
			<tr>
				<td width="150">Adresse: </td>
				<td><?php echo $getStationById->return->street . " " . $getStationById->return->street_nr; ?></td>
			</tr>
			<tr>
				<td></td>
				<td><?php echo $getStationById->return->zip_code . " " . $getStationById->return->city; ?></td>
			</tr>
			<tr>
				<td>Telefon: </td>
				<td><?php echo $getStationById->return->phone; ?></td>
			</tr>
			<tr>
				<td>E-Mail: </td>
				<td><?php echo $getStationById->return->email; ?></td>
			</tr>
		</table>
	</li>
	
</ul>

<!-- Include the footer area of the website -->
<?php include('includes/footer.php'); ?>